CVE-2026-33412
Vim affected by Command injection via newline in glob()
Description
Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vim's glob() function on Unix-like systems. By including a newline character (\n) in a pattern passed to glob(), an attacker may be able to execute arbitrary shell commands. This vulnerability depends on the user's 'shell' setting. This issue has been patched in version 9.2.0202.
INFO
Published Date :
March 24, 2026, 8:16 p.m.
Last Modified :
March 25, 2026, 9:59 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update Vim to version 9.2.0202 or later.
- Ensure the 'shell' setting is configured securely.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-33412.
| URL | Resource |
|---|---|
| https://github.com/vim/vim/commit/645ed6597d1ea896c712cd7ddbb6edee79577e9a | Patch |
| https://github.com/vim/vim/releases/tag/v9.2.0202 | Product |
| https://github.com/vim/vim/security/advisories/GHSA-w5jw-f54h-x46c | Patch Vendor Advisory |
| http://www.openwall.com/lists/oss-security/2026/03/19/10 | Mailing List Patch Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-33412 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-33412
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-33412 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-33412 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 25, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:vim:vim:*:*:*:*:*:*:*:* versions up to (excluding) 9.2.0202 Added Reference Type GitHub, Inc.: https://github.com/vim/vim/commit/645ed6597d1ea896c712cd7ddbb6edee79577e9a Types: Patch Added Reference Type GitHub, Inc.: https://github.com/vim/vim/releases/tag/v9.2.0202 Types: Product Added Reference Type GitHub, Inc.: https://github.com/vim/vim/security/advisories/GHSA-w5jw-f54h-x46c Types: Patch, Vendor Advisory Added Reference Type CVE: http://www.openwall.com/lists/oss-security/2026/03/19/10 Types: Mailing List, Patch, Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Mar. 24, 2026
Action Type Old Value New Value Added Reference http://www.openwall.com/lists/oss-security/2026/03/19/10 -
New CVE Received by [email protected]
Mar. 24, 2026
Action Type Old Value New Value Added Description Vim is an open source, command line text editor. Prior to version 9.2.0202, a command injection vulnerability exists in Vim's glob() function on Unix-like systems. By including a newline character (\n) in a pattern passed to glob(), an attacker may be able to execute arbitrary shell commands. This vulnerability depends on the user's 'shell' setting. This issue has been patched in version 9.2.0202. Added CVSS V3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:N Added CWE CWE-78 Added Reference https://github.com/vim/vim/commit/645ed6597d1ea896c712cd7ddbb6edee79577e9a Added Reference https://github.com/vim/vim/releases/tag/v9.2.0202 Added Reference https://github.com/vim/vim/security/advisories/GHSA-w5jw-f54h-x46c